package com.onesports.intelligent.k12.polarlight.mapper.organization;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.onesports.intelligent.k12.polarlight.annotation.DataPermission;
import com.onesports.intelligent.k12.polarlight.domain.dto.operation.PageOrganizationDTO;
import com.onesports.intelligent.k12.polarlight.domain.entity.organization.Organization;
import com.onesports.intelligent.k12.polarlight.domain.vo.operation.PageOrganizationVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 运营团队
 *
 * @author
 * @since 1.0.0 2022-07-08
 */
@Mapper
public interface OrganizationMapper extends BaseMapper<Organization> {

    /**
     * 分页查询组织列表
     *
     * @param page 页面
     * @param dto  入参
     * @return PageOrganizationVO 分页运营端运营团队VO
     */
    @DataPermission
    IPage<PageOrganizationVO> findPage(@Param("page") Page<PageOrganizationVO> page,
                                       @Param("dto") PageOrganizationDTO dto);
}
